Changed Arrays “for var in”

Changed “for var in” to “for i < array.length” to prevent bug with
other frameworks (issued occured with Flambe)