Fix parsing of leading digits.

When there are multiple leadingDigits nodes, don't concat text.
Instead generate a regular expression union.
Properly apply leading digits.

The regular expression could be a union, so make sure we wrap in parens.
Merge branch 'apply_leading_digits'