templatize static_forest ctor