Fix several ambiguity warnings on 0.4 (due to Dates)

The remaining 2 ambiguity warnings appear to be due to a julia bug (https://github.com/JuliaLang/julia/issues/8045) and cannot be fixed here.