adding boolean coercions to the faster isType methods
(cherry picked from commit 75a31fffc59af2ad1ab682a63e2aed9669218ac4)