Add buffer read/write capabilities to OCL stub

Buffer tests pass with OCL stub and with real OCL implementations,
no leaks.