colorize a dumped scope tree
check its scope to determine the two generic func types are the same