Small fix from last commit when getting field value type from an entity value