typeof X when X in not declared should return undefined rather than throw.
Fix jsone build.
Rename some regex opcodes.
Fix lookahead captures.