Add missing attributes "lv" and "size_x", "size_y" when writing level XML