Changed the way children are added to a list

Before: the children were added after the last existing
children of the list. It didn't work when the list was
initially empty.

Now: the children are appended to the itemContainer. The
itemContainer is found by getItemContainer which tries to
find an appropriate container.