Add basic support for unique IDs on elements