Check that number of actual args matches number of kernel args.
Note
Debug routine: only executed for debug build.