fix nth-child implementation

The previous nth-child('an+b') implementation could only have a and b values that were single digit (eg
 5n-7).  Patterns like 13n+14 were not supported, and were interpreted as nth-child('13').