* test functions moved from Decimal to tests/Main

* Added Typeable instance to Decimal