Changed array builder behavior, updated the examples.