Make collection and compound types work in create_model