Fix assignment operations to be safe after a move.
Added test cases to catch bug case.
Refs #8667.

svn path=; revision=84687