Lost in Serialization: Invariance and Generalization of LLM Graph Reasoners