fixed _generate function when mapping arrays keys to return a key that is a string instead of a number.  This was causing a problem in the key pathing