The Maple graded question type set up has an answer box, that gets stored as $ANSWER, and then grading code that compares $ANSWER to $RESPONSE. The value of $ANSWER is also what is displayed to the student. It is not uncommon to want to display something different to the student to the actual code for the answer (eg. the MathML version of the required matrix, rather than the Maple code for it).
It is possible to do this, but requires you to correctly change $ANSWER in the grading code to the actual answer. This would be easier to achieve if the default grading code was instead:
(Similar changes for $RESPONSE would also make it easier when you need to reformat the student's response before grading.)