Be more explicit in casts of generated bindings
Merge master into this branch
auto merge of #1736 : sankha93/servo/issue1733, r=jdm