Remove some into_owned calls.
Mark some unused fields.
Remove the pointer to the Rust object in Root.

It is already stored inside the jsref field.
Merge pull request #2729 from Ms2ger/warnings

Fix some build warnings in the script crate; r=jack