Resource cleanup fixes in various OpenCL formats. See #739.