https://github.com/BrynCooke/cdi-unit/issues/12
Fix circular dependency check and also prevent classes being processed
twice.