pass this model to get_type function so we always get a type. closes #656
Merge pull request #659 from unikent/bug/immutable_field_bug

pass this model to get_type function so we always get a type