https://github.com/metabrainz/picard/pull/1448
PICARD-1022 Add $index multi-value function
PICARD-1687 $first scripting function