Fixed Java generator failing with list types