simpler handling of RVs

This removes all the complicated work-around for reblessing. Also, a
test to make sure we never break serialising refs to readonly values.