Change top-level to be list of declarations

This updates all the examples in tests/parser but not yet the rest
(for tests/parser verified the parse trees).