mod/ouwiki (major) fix XML backup functions (to enable proper restore into Moodle 2+)