rpc: Accept scientific notation for monetary amounts in JSON
Add a function ParseFixedPoint that parses numbers according
to the JSON number specification and returns a 64-bit integer.
Then this in AmountFromValue, rather than ParseMoney.
Also add lots of tests (thanks to @jonasschnelli for some of them).
Fixes issue #6297.