deprecate functions `inf` and `nan`

I think these functions are a bit silly. It is confusing to have both `NaN` and `nan` exported, and now that you can write `T(Inf)` it is not that useful to have `inf(T)`.