[buffer] Introduce QTypedArrayDataSlice<T> and use it in Buffer
[buffer] Refactor data allocation
[buffer] Fix a memory leak
[buffer] Many fixes in QTypedArrayDataSlice
[buffer] Implement slice() method