Cleaned up the copying and serialization of hero objects.