Add some templates for cleaner array iteration.
Genex: Remove use of TransitiveWhitelistCompare

Replace with generic solution based on cmArray* for better
readability.
Genex: Use cmArraySize for targetPolicyWhitelist

For better readability.
Merge topic 'cmarray-templates' into next

17f4f40 Genex: Use cmArraySize for targetPolicyWhitelist
f5a82d6 Genex: Remove use of TransitiveWhitelistCompare
f539795 Add some templates for cleaner array iteration.