Fixed for..in loop to prevent Array trouble

See fvdm/nodejs-authy#1