Fixed bugs in the model REST API related to PATCHing @attributes and GETting empty lists