HPCC-10420 Ensure contents of expr attributes are hoisted when required

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