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].

This is a redo of #663 with the commits hopefully cleaned up.