added version/type to virtual dom node, fixed null passing to appendChild, added tests for render