Add a warning for sections that are not on the top level.

Fixes #712
Merge pull request #1699 from fhartwig/master

Add a warning for sections that are not on the top level.