Add test for --nulls
Move functions to JsonData type.
Various improvements.

Detect and report invalid access, loop instead of recurse, and doc improvements.
s/JsonData/JsonObject/