Fix ArrayRead with index Params. Also cleanup some stuff