Use strings rather than object on html element stack and remove ref for ...

...add type.