be sure to not emit an external ref as both a var and a func in fastcomp