Updated @Memoized so that it works with @CompileStatic
   * slightly changed the strategy (private method + closure field)
   * typed the closure field
   * fixed variable scope