object datatype validate() now parses JSON strings

As object.serialize() does a JSON.stringify() it must also do a JSON.parse() on validation to be able to load JSON strings from SQL adapters.
added unit test for object datatype with JSON string
Whitespace
Merge v0.4 into master