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
fix(grunt): Give java 2g of memory

Give the java build process 2g of memory