Refactored to not use _trait_f and _trait_type_f in favor of having
everything in f.  With the old approach, functions defined in several
modules were problematic.

Refactored traitcheck -> istrait

Added traitmethods

Added one performance check in test/perf