don't alter repo state when serializing

...and reusing the serialized object in the main process
don't alter bundle state when serializing
don't alter group state when serializing
Merge branch 'bugfix/repo-serialization'

Conflicts:
	src/bundlewrap/bundle.py
	src/bundlewrap/group.py
	src/bundlewrap/repo.py