fixed _model_to_dict to correctly apply field filtering