Fix Issue 6998 - std.container.Array destroys...

... class instances