Fix for model JSON generation from schema for Recursive types and List and Set types

- Recursive model schemas cause sample model JSON generation to have a stack overflow error
- List and Set property types are not handled correctly (just like Array types)

fixes issues #32, #33