48588 group move bug

Possibly easier to review commit by commit.

- Fix (and improve) path warnings.
- Fix bug: when moving group, references to items in group were not updated.

http://manage.dimagi.com/default.asp?48588