Fix GC crash with gob/parent handling

This fixes CureCode issue #1969
Merge branch 'bug#1969' of https://github.com/ladislav/r3 into community