Detect non-toplevel includes

We support includes only at the toplevel. Let's detect the non-toplevel
ones and raise an exception, rather than fail silently.