Get better typed arrays from vectorized operations in arithmetic and io. Fixes #10