Tool to help generatedialect bytecode Attribute & Type reader/writing.
It helps reduce boilerplate when writing dialect bytecode attribute and
type readers/writers. It is not an attempt at a generic spec mechanism
but rather practically focussing on boilerplate reduction while also
considering that it need not be only in memory format and make it
relatively easy to change.
Can we move these to BytecodeBase? These feel like generally useful constructs.