MDL-34050: Lesson module: fixed matching answer format to use text
MDL-34050 Lesson module: Fixed undefined variable for $qtype
MDL-34050 Lesson Module: improved matching question logic for checking user response.  This patch will also resolved MDL-36343.
MDL-34050 Lesson Module: Fixed spacing and removed array_unique() for responses