Assembly attributes before types

In declarations like this:
```
[assembly: SomeAttribute()]
public class C {}
```
the attribute will be added to the type.

Failing test and fix in separate commits.