Remove Scalar::Util dependency

This is intended to solve a problem for EUMM: it depends on CMR, which depends on Scalar::Util, which depends on EUMM to install itself. This is a problem in Perl core. Switching to using `ref` instead of `Scalar::Util::blessed` eliminates this problem, and doesn't seem to lose anything.