Use tools.clj's parse-fn to coerce max to number

Fixes #7