add test (needs updated opencv_extra repo)
fix code, it turns out only TIFFReadRGBATile needs buffer pointer mangling