After bending and arbitrary field release, recover the functionalities present in commit 515ff3e (undulators et al)