Added workaround for bug 12203 to container.vector.
Improved scoped ref.
Fixed singleton.
fixed weakptr.swapPlaces.