Perform __toString conversion on objects in $key for array_combine

Addresses #1365