Simplify fetchSection and avoid double-lookups.

As requested. Note that this is slightly different from the first commit in #14 because I was able to simplify the render function a little further (eliminating newly-dead code).