A simple utility for collapsing single-element arrays.