Update typechecking for tests and fix some type errors. Finally remove all references to Foreign
Add tests for Data.Ratio