With this, the amounts returned in decoderawtransaction will be padded to 8 digits like anywhere else in the API.
This is accomplished by using ValueFromAmount in TxToUniv, instead of FormatMoney which it currently (mistakingly) uses. The FormatMoney function is only for debugging/logging use!
To avoid dependency issues, ValueFromAmount is moved to core_write.cpp, where it also fits better. I don't move AmountFromValue to core_read.cpp at the same time, as this would have more impact due to the RPCError dependency there.
(n.b.: large number of changed files is solely due to the util_tests JSONs needing update)