[model] renaming 'type' -> 'choice_type' in check_choice()

This avoids a name collision with a Python function name