Tutorial updates and fixes
Provide dims as dimensions object using fromTuple
Cast index list as array before flattening