fix catching polymorphic types by value

No match.