Fixes for Typed Params

slightly different logic for search and path matches. In either case, we figure out if it's typed or regexp, look up the correct Type, or create a regexp Type.  Otherwise, we set the type to undefined (to use defaultType)