Lots of bugfixes, typos and cleanup

The _forEachIndex produced an error in squint2 thus why i changed it to the _i thingie. Don't know why it produces an error, might be because the functions have not been updated to the latest OA patches.