Added general function used to remove(and delete) pdmObject from pdmPointersField
Used when closing a grid group
p4#: 20992