BUGFIX: applytoall() loops through all members, creating memory leak.