Fix warnings
Use `iter.enumerate()` instead of manually making index variable in value conversion to/from vectors