Use local typedef to invoke GenericMember's destructor

Fixes #111 as confirmed by @alian555.