Added functions to reconstruct CoordinateMove.
Use PartialFunction.condOpt.