add tests for 'compile-route'.
fix CompiledPrefix.

CompiledPrefix needs to implement PatternSegment, otherwise matching as
part of a vector will throw (see #17).