Added entityreference field type support.