Various fixes to CodegenRust.py

Rust doesn't handle integers as bool on if statements, and defineProperty signature uses *mut instead of *const.