addunique/removeobj/replacewithlast cleanups


git-svn-id: http://svn.code.sf.net/p/sauerbraten/code@4965 07af1644-1164-4067-b897-63bf4dc9b748