More fixes to _dwim_add_transform