Added duplicate() to all Cmd nodes and implemented generic ++/-- adjustement.