Made Config more static, to faciliate library/utility usage.

misc fixes to generic types.