Merge "Add optimizations for instanceof/checkcast."