[RArray][RHash] improve initialization