gh-37615: Removed `BUG` method and include a docstring for `matrix_of_frobenius()`
When reviewing code for hyperelliptic curves I found a method labeled
bug with a typo in the name which was unnecessary. I have removed this
method and included doctests which were previously absent.
### :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.
- [x] I have updated the documentation accordingly.
URL: https://github.com/sagemath/sage/pull/37615
Reported by: Giacomo Pope
Reviewer(s): Giacomo Pope, grhkm21