Fixed enqueueNDRangeKernel argument validation; also made localWorkSize optional and default to null