Fix for loop scope, allow string keys in object initializer