fix bug in NLG of arrays