Fixed casting problem for vector_mref::shallow_assign