Update handling of unbalanced braces in actions to accomodate regexps

We'd need a full JavaScript parser to parse regexps correctly, so for now,
use a simple heuristic: "if it has a space, it's not a regexp".
0.1.6