Fix ignorance about doc.first in coordsChar

Closes #1254
Add a Q mode
Fix bug in document iteration over subviews

Closes #1252