Enforce order on AddPatternHandler and AddPatternHandlerFunc

What added last will be matched first.