Update to the new signature for new_GpuArray().
Add optimisations for GpuDimShuffle and SpecifyShape.