Replace usage of std.math with phi.core
Avoid the implicit conversion in the test
Can simplify the versioning system