fixed the problem that calls ItemTable::add() without increasing reference count.

This bug was made in commit: 49ad7072 when ItemGroup * was replayced
by ItemGroupPtr. An ItemGroup instance in ItemGroupPtr is destroyed
at the out of instance scope. So increasing of the reference counter
is necessary.