Add support for defining model in group and wrap mappings (closes #59)