CRUNCH-158: Fix DoFn intialization in MemCollection and add support for Counters to the in-memory impl