Previously the reference title ended up in a separate section at the back of the body instead of in the ref-list in the back matter. Closes #8364.