Fix and test DynamicCapability tail calls.