Speed up pmatch and release 0.36.0

Speet up pattern matching by declaring type-matchers once and using them
instead of having many separate has-type? calls.