Added support for simple gates with one constant input to opt_const