Made if/cond carry stack effects.  Added predeclaration of variables to fix scoping.