Clean up list/array handling for Swagger models

The Swagger metadata should be the same for generic list types and
regular Array types; added the GetListElementType method to make it
possible to handle both types with the same code. Also, this fixes
missing model schema info for responses of Array[SomeComplexType].
Merge pull request #664 from mmertsock/array_handling

Clean up list/array handling for Swagger models