Correctly lower unions containing capabilities to capabilities when calling functions.