fix Issue 13661 - static array init does not call destructors

Add internal functions to handle assignment from an array with rvalue elements.
Merge pull request #1006 from 9rnsr/fix13661

Issue 13661 - static array init does not call destructors