Calling a non-callable is indeed a TypeError, but probably not what we want to test here.
Add optimization to remove single-element joins.