Moved val_t::print and trunc_print functions to .cc and made them const.