More IE8 fixes brought form the production CC-Tool

Also using for-array where arrays are being used.