64-bit optimisations, and bug fixes to cell dragging logic.