Optimised Wrapper isInstanceOf() implementations for common cases.
Merge pull request #771 from johnhaddon/typeIdOptimisations

Optimised Wrapper isInstanceOf() implementations for common cases.