Added JSON serialization of reference types (non-anonymous)

Includes:
- Spec on the JSON serializer.
- Test code for the JSON serializer
- Also, translated some tabs into spaces for the string serializer.
- C binding for the JSON serializer test code.

Some things pending:
- Test strings that need escaping (check escape sequences in http://json.org/).
- Serialize anonymous objects.