WINTERMUTE: Consistency check method (for debugging)
WINTERMUTE: Fix swapped left/right attributes in getOptimized

s/rightSlice->right = existing->left;/rightSlice->left = existing->right;/

Also reorder lines for readability.