fix: throw exception while analyzing if a non-indexed or analyzed column is used within grouping, aggregation or sorting

add IndexType property to ReferenceInfo