Fix perfect forwarding in KisForest
Perfect forwarding works only when the argument is an immediate template type of the function, not a template of a parent class.