Parse all keys as integers *before* calling max

Fixes atom/atom#1862
2.0.2