fix value printing crash for HASH types