Fixes for .as_buffer (Py3, bugs)
Merge bodge:src/pycuda