Fixes equality typos in scanning types.
Adds methods around unsafe and potential checks.