Added namedGroups property to Regex struct.

Extended NamedGroupRange to be a random access and forward range, and added length memeber.

Changed name of namedGroups property to namedCaptures
Merge pull request #1385 from blackwhale/named-regex

Added namedGroups property to Regex struct.