Fix #727: Source mapping for Rhino.
Replace casts to Scriptable with Context.toObject