Fix an occasional crash in the propgrid when switching modes.

Fixes #110.

If the previous mode had a "custom" prop group, it would be removed from the grid by the mode change, but wouldn't be deleted.  Trying to add properties to it would then cause a crash.

Fix is to just clear out `group_custom` when repopulating the grid.