BUG: Add `ENSURE_DEALLOCATED` and use it to prevent typos