Fixed alignment issue with GCC 4.8: Serialization no longer relies on struct memory layout