Remove usages of old @Writer from codegen; replace with new runtime

The old @Writer trait is now feature gated (because of @); I replaced it with the new runtime instead as this is probably the correct way to do things.
All tests pass on my machine.