assignKeepDomain now preserves array size.

This was a potential bug.
Merge branch 'master' into staticVector
applied change to assignKeepDomain