Fix setting values for entity reference and text fields on POST

When creating a new entity via POST request, now the fields of entity reference type with multiple values is supported.
@mateu-aguilo-bosch do you have a better idea on what to do here? We could move this info into the getPublicFields(), but the format may change from user to user.