fix toString method for some json element types
add strict mode when getting a value, default is false. fix tests
fix checks and tests