Reorganize library and tests layout

Also add some more stuff to object-like stubs for blelloch scan
implementation