fix(compile): IE8 specific fix

Fix for [].splice on IE8 that has the second argument as mandatory
Fix for arrays on IE8 that adds an extra element on trailing comma