Optimize StatementList construction from array