Issue #77: Replace the class registry with a more robust alternative.
Merge pull request #231 from quicksketch/77/robust_registry

Issue #77: Replace the class registry with a more robust alternative.