Record OpenCV build type among the test properties.

Because apparently I love running performance tests for debug builds.
Merge pull request #1620 from SpecLad:record-build-type