Improve test naming consistency.
Detect sizes of value arrays.
Support older CMake.