added functionality to use objects with number keys for arrays
added functionality to use objects with number keys for arrays