package_stub should warn if a non-function is getting stubbed