auto-id generation when an element has none

needed by our designer-less testapp