Prevent "circular references" error by error checking similar to meta_programming gem.