SERVER-10471 switch to memoization enumerator
SERVER-10026 more bugs uncovered by test triage
turn assert(0) into assert(xxxxx)