extend Map unit test to check buffers allocated on the stack
Fix bug 708: add placement new/delete for array