Don't allow top-level declarations in local blocks

`local .. in ..` only allows declarations between the `local` and `in` keywords,
as top-level declarations like export specifications and data declarations don't
make sense in that context.