add 'const' to methods that inputs or outputs ItemData instances in ItemGroup.

Now ItemData still cannot accept 'const ItemData *' as an argument
of the constructor. So In the some part to do so,  'const_cast'
was inserted. For the next step, I'll implement such function and
remove the 'const_cast'.