Fixed bug with the allocation of function ids, which could cause random behaviour for very large scripts

git-svn-id: https://angelscript.svn.sourceforge.net/svnroot/angelscript/trunk@1555 404ce1b2-830e-0410-a2e2-b09542c77caf