Update R/collections.R

row hierarchy support patch