issue #250 set dirty flag in Parameter.swap()