alternative json format works with types - close #425
added open_to method
creating nodes in leaf nodes or closed nodes now works as expected