Assorted cleanups

Some new elementwise operators, better array cleanup during test suite