specialize yield callback by term type