Use window._resetIdCounter for id reset

This allows implementations to avoid the use of global variables which can be many times slower than local variables within Contextify instances. In Thorax, uniqueId was increased by 6x after switching to local variables that are reset through this API.