add support for arbitrary R object to treeSkeleton