Changed counted_t<func_t> to counted_t<const func_t> everywhere.