Removed some leftovers and made toArray() apply to sub-items as well.