Add classification for top-level headings
More bug fixes to size classifier

Prior to this commit, the handling of single sizes was not correct when the size appeared non-contiguously. This should fix that.