Fix broken native protocol serialization methods