Fix rewriting class declarations that are later exported, e.g.

```js
class Foo {}
export { Foo };
```

This addresses #176.