Ensure all orphans with @member get their classes created.

There was a conflict with one method looping over array while
other deleting items from it at the same time.

Fixes: #378