Optimize for superfluous cases of NOT, i.e !!!!x can be simplified to !!x.