enable multiple row draws before serializing X_L, X_D

in sample_and_insert, via addition of _sample_and_insert
retain interface/return types when single row id is passed
sample_T: use multirow sample_and_insert
BUGFIX: pass valid dir value to plot_views
Merge branch 'speed_up_geweke'