HPCC-11263 Pack the HqlStmt class, and avoid cloning literals.

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