fixup: typos and missing braces
Correctly calculate length of CL_CONTEXT_PROPERGTIES Array