Remove sources of undefined order of evaluation in CodeGen_C

Fixes #239
Merge branch 'master' of github.com:halide/Halide