Use proper for loop in getField, fixes #103

some tools add custom functions to Array, which breaks for/in loops on array.