HPCC-10311 Skip casts when deducing the names of implicit fields in records

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