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