FIxed a bug in ScriptResourceBase that would cause scripts to recompile
every time Instantiate was called.