JSContext: fixed typo in Context.array
WebCLContext: refactor NDArray support methods