Check CL_DEVICE_MEM_BASE_ADDR_ALIGN in sub-buffer test

This test was failing with devices with large MEM_BASE_ADDR_ALIGN.
The sub-buffer test now takes this value into account.
Merge branch 'master' into devel