Use tail calls for invoking functors.