Reduce the snippet returned from `getMethodAssignments` and avoid a possible infinite loop when removing dead vars.
Fix build by not counting pseudo private props as part of the `isVarUsed` result and accounting for `findWhere`.