Issue #1092 Prevent 'The id is invalid--it is already in use' error
Replace all hardcoded temporary ids ('tmp') used for new objects
creation by utils.tmpID(), which generates a 16 bits random UID