fixed memory in output of INTEGER and RATIONAL