Use a typedef for monetary values

Replaces int64_t with a typedef in all monetary contexts.

See #4067 for a more thorough description of this patch and associated context.
I don't know, a small mistake by @maaku I guess. Can you correct it?