Modify the way unique ids are stored
The current way works, but do not offer a simple way to clear the content (which would be useful in the context of tests - see #1696 (closed))
Centralizing the unique ids of all classes that use them up in a single objects would ease the possibility to run in a same tests data from several Lua files.