*: use TeeReader to reduce I/O in CAS

DetectFileType takes in hdr.W:
```
typ, err := aci.DetectFileType(hdr.W)
```