Stack overflow with cleanGroup()

I’m finding with recent Corona builds that calling cleanGroup() (as defined here http://jonbeebe.tumblr.com/post/3760389212/proper-group-cleaning-in-corona-script-download) results in a stack overflow due to repeated recursion of calling group.remove. Any ideas how to avoid that?

It seems like when remove() is called on a display group with a nested display group as the argument, when o:removeSelf() is called on the child display group it is just getting called again repeatedly, causing a stack overflow.
[import]uid: 43692 topic_id: 30849 reply_id: 330849[/import]

I am getting errors as well.
2012-11-07 22:11:37.561 Corona Simulator[4386:f07] Runtime error
ERROR: Attempt to remove an object that’s already been removed from the stage or whose parent/ancestor group has already been removed.
stack traceback:
[C]: ?
[C]: in function ‘removeSelf’
?: in function ‘remove’
?: in function ‘removeSelf’
…TemporaryItems/162/thirdparty/scripts/cleangroup.lua:167: in function ‘cleanGroup’
…TemporaryItems/162/thirdparty/scripts/cleangroup.lua:154: in function ‘cleanGroup’

Any other way to cleanup groups recursively? [import]uid: 48484 topic_id: 30849 reply_id: 130260[/import]

I am getting errors as well.
2012-11-07 22:11:37.561 Corona Simulator[4386:f07] Runtime error
ERROR: Attempt to remove an object that’s already been removed from the stage or whose parent/ancestor group has already been removed.
stack traceback:
[C]: ?
[C]: in function ‘removeSelf’
?: in function ‘remove’
?: in function ‘removeSelf’
…TemporaryItems/162/thirdparty/scripts/cleangroup.lua:167: in function ‘cleanGroup’
…TemporaryItems/162/thirdparty/scripts/cleangroup.lua:154: in function ‘cleanGroup’

Any other way to cleanup groups recursively? [import]uid: 48484 topic_id: 30849 reply_id: 130260[/import]