Issue #1089694: Fix group by on field api with multiple field values by allowing group by on entity id for these fields.