Return datalist size as index if it is a variate list

Reviewer: Daniel Villafuerte

Issue: GCP-9088