Handle primitives, add sidebar.show/hide

* Handle primitives by displaying them as a comment
* Add sidebar.show() and sidebar.hide()