Group expressions surrounded by [],{}, or () to improve performance

This comes at a possibly less useful parsing when the expressions are
incorrect.