Rationalize assignment to sparse vectors