Made ScriptValue generic.