More small celanups to RegularExpression code