migrate old index mapping to new array type mapping

var was unused before. added the call below in my branch. jordi deleted it when he was cleaning up. i rebased and had to remove it. will remove analyzer var too.