Use a custom `each` function instead of `Array#forEach`

This improves luamin’s browser support, but also has a positive effect on performance. Ref. #4.