Lotus5-opencl bug fixes. Closes #601.