more test-based fixes
test_arrays working