Generalized lindblad operator

This PR also includes fixes and code simplifications in qutip.cy.codegen.