Improving config parser for arrays