HPCC-12528 Report error if varstring used in an index

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