Group formula cells if we can, to avoid cloning of token array instances.

Change-Id: I584e6d0c34f972c1ae5105a80d201f32dd8590d9