Push modes *after* mode_params is called.

This allows us to add rules within a mode_params method such that the
new rules will be committed once the current mode (not the one about to
be pushed) is popped. This matches the way rules are currently added
via layer1's grammar.