fix for sub-models in arrays specified by type instead of $ref