Fixes scope/library conflicts for matching on scoped routes.
Merge pull request #945 from jails/bug/scope-library-conflict

Fixes scope/library conflicts for matching on scoped routes.