auto merge of #1883 : Ms2ger/servo/cleanup-codegen, r=jdm
Replace GetReflector by an implementation of ToJSValConvertible.