Fix issue 4330 and issue 8764

Issue 4330: add documentation for Transposed and transposed.

Issue 8764: (1) fix forward range bugs (need to use .save to avoid consuming reference ranges); (2) rewrite popFront to use safer code to ensure popping of subranges actually has persistent effect, add signature constraints to enforce assignable elements on range of ranges.

Also add some unittests.