Changed tostring call to only occur on non-string keys.