allow for responseObject to be of type array and returns the proper swagger $ref

Currently if the responseObject is an array it returns an object with the keys "includes" and "excludes"
This code change properly processes the responseObject "array" types and returns the appropriate $ref to the model.