Move JSON test helpers to JSON file since they are only used there.
Use same precision in Path#getPathData() as everywhere else.
Rearrange method sequence in basic types.
Allow all basic types to properly serialize themselves in non-compact form.
Add support for Item#data serialization.
Clean up JSON tests a bit.