Also select headers for grammar sections...

...which makes the function even slower...
Temporarily add some performance debugging

It appears that the selectors are absolutely fast enough - but we
something seems to introduce a memory leak here. Don't really know.
Something is wrong.