Add support to entity reference fields in POST entitycreate

When creating a new entity via POST request, now the fields of entity reference type with multiple values is supported.