fix(i18n): Do not transform arrays into objects

Do not trasnform arrays into objects when generating the locale objects
Add unit test for this check

This was split from #2458 as this part of the patch should be handled as a different PR