plot,dataset: Transition to _WITH_PRIVATE macro, fix a crash.