Added function for grouping an array of views into a container view.