Elide trivial IsInstance calls