resolved: fix serialization of LOC records, check correctness