Fix issue 6646: array.reserve should be callable from SafeD.
Simplify unittest per Kenji's comments.
Merge pull request #536 from quickfur/issue6646

Fix issue 6646: array.reserve should be callable from SafeD.