Indexed scripts/templates: Fix tests after move the groovy.

Mvel has been removed and replaced by groovy. Needed to update the tests that relied on mvel to use groovy instead.

See #5921