set buffer shape to data shape if not chunked, added setter