merge arrays when extending objects