New datatype tests (real, rational, decimal) and some bugfixes