Efficient arrays of tuples with value semantics for elements