fix tiled read for reading tiles into partial blocks in image
backport of master-based perf tests for matchTemplate to 2.4
add test (needs updated opencv_extra repo)
fix code, it turns out only TIFFReadRGBATile needs buffer pointer mangling
merge with origin
Merge pull request #2384 from ilya-lavrenov:perf_match
fix merge
Merge pull request #2201 from mattip:2.4
Hardcode iOS's endianness, since the TestBigEndian module doesn't work there
Merge pull request #2389 from SpecLad:ios-big-endian