[WIP] Codegen errors

- [x] Remove duplication of interfaces
- [x] Fix fatal errors
This requires a new test asset