Merge pull request #669 from Kinematics/4.1-dev

GearSwap: return expected pet_midaction from global var.
GearSwap: Refine status guards to be sure we get a valid new status.