Consider more trees as trivial for inlining.
Improve optimization of IsInstanceOf.
Update checksizes.sh for the two previous commits.
Merge pull request #1098 from sjrd/improve-optimizer

Improve optimizer