Made metadata saving for gcode files more error resilient (hopefully that is)
Merge remote-tracking branch 'upstream/devel' into devel