Ensure the lib dir is in the package top-level directory.
Make __setitem__ accept arrays with partial shape.

To simplify the code, gpuarray.array() is revised to try to return a view or a reshape if copy=False and other constraints match.