Changed parsing of Models, now more robust. Fixed isCollection- and isArray-method causing exception if type was a simple class