add rstan_relist to replace relist in order to keep dim attributes