octascript: constant folding and specific codegen for bit ops