minor static-ing of local function, const.
io: move some min/max brick code more public.

so it can be shared in another Dataset implementation.
move a bunch of dumb test code out of dynbrick code.
io tests: fix temporarily.

force debug STL on, and drop cbi tests for now, it's probably dead
code.
io: internalize many DynBrick functions.