Revert "Refactor: introduce isType reducing redundancy (trivial change)"

This reverts commit 52204af457c30781b09accc91c5d18d045d674ea.  It
breaks Nixpkgs evaluation.

http://hydra.nixos.org/build/5758197