got the nested container memory leak. Closes GH-289