Improve numbers

I've attempted some tests for number types and also added conversion between rational numbers.