Move operations are unstable if repeated

Policy move operations in razor were unstable: if you tried to move a policy before another it could end up following it!  This corrects that, along with cleaning up some style and test problems in the code surrounding the moves.