Big changes for the json module.

- Fix up errors in module interface input.
- Add an array sizing script function, json_array_size.
- Able to return sub objects from partial paths.
- General fixes.
Free string returned from json_dumps
Unit tests