Added equals() rules for boolean types. (allow 1 for true and 0 for false)