MDL-40803 mod_scorm: fix issues like non-typed equality checks, etc