Remove Scalar::Util dependency