Move code around in railgun/simobj.py

No functional change
Fix a bug in __setstate__ (fix two copy test failures)
Make Int1DimArrayAsObject deepcopy-able (fix a copy test)