dataset: Use similar form to dictionary code for callbacks, and document.