Using items->$ref instead of item->type as per swagger 1.2 spec

A small change in model to support nested array types in swagger-ui 1.2