copy bugfixes
Bugfixes in saving, loading and copy.

save complexobjects
moving classes