Fix for when recursive List/Set types causing StackOverflow exception

Fixes issue reported https://github.com/martypitt/swagger-springmvc-example/issues/16