PNaCl: avoid copying data in reshape