Allow more than 9 captures in path regexes.

Currently there are only 9 captures supported due to that code:

`my $args = [ $1, $2, $3, $4, $5, $6, $7, $8, $9 ];`

This pull request fixes this limitation and adds a test for it.