Fixed semantics of tox_array (should also be more memory efficient).