src/serialization_phase: generate code to be more tolerant to errors