Fix longstanding issues, add OpenCL support to plane test (not worth it! use as proof of concept/example)