- refactored dumping, to a standalone function in utils
- added dump function to plotobjects
- reorganized set_context/unset_context on document @damianavila