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.