improve performance of DOM.create
various minor fixes
add null attribute test