Fix #1052: Don't load ConsoleTestOutput in test load hack.
Fix #727: Source mapping for Rhino.
Replace casts to Scriptable with Context.toObject