test importing and exporting yaml with nested translations.
when importing flatten the hash to a key. When exporting unflatten and create a nested hash

thank you @breinweiner for flattening the hash.
thanks to http://stackoverflow.com/questions/4364891/how-to-transform-dot-notation-string-keys-in-a-hash-into-a-nested-hash for converting the dot notation to a nested hash.