Fixed an issue with strings and numbers being serialized incorrectly.