Various fixes to CodegenRust.py
auto merge of #3881 : brunoabinader/servo/dataset, r=jdm

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