Making upcasting of nodes to arrays work from builders