Tweaks in repeat

Added documented unittests.

Reworked documentation to state adherence: no need to document every tiny function.

Minor details (parens, function ordering).

Made font/back/index inout.

Overall, mostly style and trivial changes. Check the commits individually.