Initial support for rlist2array and simplify example