Checked that everything works on various ref types.