Working around the specialization <-> `PartialFunction` interplay.

Adding the `onCase` subscription method that works only on `AnyRef`s,
and can be used to pattern match ADTs.