remove unused RefCount
template function of hasUndefinedLabel
remove unused string label when outLocalLabel() is called
use suitable name/class