Fixed an incorrect error code when registering a template specialization and the template type instance already existed


git-svn-id: http://svn.code.sf.net/p/angelscript/code@2033 404ce1b2-830e-0410-a2e2-b09542c77caf
Template specialization failed to remove generated template instances that has been created as a consequence


git-svn-id: http://svn.code.sf.net/p/angelscript/code@2034 404ce1b2-830e-0410-a2e2-b09542c77caf
- asIScriptEngine::AssignScriptObject now returns an int with the success or error code
- The tokenLength arg for ParseToken is changed to asUINT

git-svn-id: http://svn.code.sf.net/p/angelscript/code@2035 404ce1b2-830e-0410-a2e2-b09542c77caf
Added asIScriptObject::GetWeakRefFlag

git-svn-id: http://svn.code.sf.net/p/angelscript/code@2036 404ce1b2-830e-0410-a2e2-b09542c77caf