util.is* functions: Remove context switch

Create local refs to `util.is*` functions so that they don't require a context-switch.

Review, please: @trevnorris and/or @bnoordhuis

Thanks.