Fixed some reference and bad box warnings.

There are still two multiply defined labels, but this is because some SRQs have been copied and thus now occur twice in the document. It needs discussion where (under which subsubsection) to put those.