Moved testDup() into KlassyTest.
Introduced 'core' type so that Klassy can remain mostly constant as core improves.
Refactored a bit.