gh-38395: get rid of some sage-eval in gap3-related code
this simplifies the gap3-parsing done in `_gap_return` and then get rid
of ` sage_eval` used on top of that.
### :memo: Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.
URL: https://github.com/sagemath/sage/pull/38395
Reported by: Frédéric Chapoton
Reviewer(s): Matthias Köppe