add rstan_relist to replace relist in order to keep dim attributes

I cannot remember if there is still a problem now.  But it seems that there is no harm to merge.