Define modpi etc. for Float32, Int32, Int64. Add tests.