Perform __toString conversion on objects in for array_fill_keys

Fixes #1742