GMX serializer work and crash fixes.