Change loose equality to strict equality where appropriate