Fix errors after numerics reform

There are still lots of warnings about `Zero` and `One` being deprecated, but I do not see an easy way of resolving those without splitting everything in a `Float` and an `Int` case.