Move inline classes into a separate file. Make serialize() into a basic function, support numeric conversions with base option Refactor numeric conversions and add some more helper functions for the build flags.