Move Tfunction and Terror special cases into Type::toCBuffer