Fix for matching routes with params

Fixes #31. Added failing test too (@cmather - right spot?)