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.