copy_constraints method added.
Added test for copy_constraints.
Added method copy_constraints as a public server function.