Remove unused parameters
Fix signed/unsigned comparison
Fix binary cl_typen operators