vectors for primitives, many other misc improvements