remove is_string check on Array key.
Tidy up tests and confirm xml/yml outputs as requested.