Index and type in benchmark API

Allow to specify 'types' as an array in the JSON syntax when describing
a benchmark competition.

Closes #5903