fix Issue 13661 - static array init does not call destructors

Add internal functions to handle assignment from an array with rvalue elements.