Fix some typos picked up by Lint.jl

Lint.jl still warns about similar blocks looking different, but I don't
fully understand the warning. The Lint.jl documentation states that this
feature is a "work-in-progress," so I am going to ignore the warnings.
Fix Inexact errors that are being thrown in Julia v0.4

Some changes to the julia standard library made this code throw "inexact" errors. Make the types tighter so that the standard library doesn't throw the error.