Revert to previous serialization

it was broken since 1.3.2,
needs more work.
This serialization will cause inability to spawn entities with metadata,
e.g. with the /spawn command