gh-36537: refresh the maple(tm) interface
This is cleaning and repairing the maple interface, so that all tests
pass with maple 2019.
### :memo: Checklist
- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
URL: https://github.com/sagemath/sage/pull/36537
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee