Ensure serialization logic is compatible with JBoss Marshalling