Support `undefined` `max` values for quantifier nodes

Fixes #2.

`switch` uses `===` internally, not `==`. This wasn’t caught by the tests because they’re in JSON format, where `undefined` doesn’t exist.