Adds correlation between sections

Also adds support for :nb types of errors which were not used before,
but are now thrown if a correlation between sections isn't possible
because the section is missing.