HPCC-12531 Report error if varstring used in an index

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>