Suggested fix for issue #4 (JSON schema generation with Jackson goes into infinite loop)

Please review this for inclusion. Let me know if there are any request for changes, and I'll clean it up/fix it.