Fixes for the parser DoAlternation().

Fix a memory leak, and avoid always enclosing the regular expression in a
trivial alternation.