Pre-calculate first dimension.
Fix order of destruction bug in to_initialize sets.
Update benchmark.