Universal backend: add class inheritance to code generator to prepare for class-based procedure representation