Use this new api instead of open-coding it. Also, assert that it merges consecutive multi-item tiles.