Check number validity for all matching territories

This fixes #17, though I'm not sure that it is the right fix. With this PR, rather than returning the first matching territory, we attempt to find a matching territory for which the number is valid.

/cc @josh @sstephenson