improve internal rep-passing logic

hopefully replacing step by while loop reduces memory usage. Also change
how empty/failed reps are handled
facilitate creation of VectorInAlg
bugfix / utility
trivial reps, info messages
improve handling of deleting algs
data!