Avoid for-in

Fix for #103.