Reformat.
Issue #34: fix mix on items of different shapes.