Add check for cycles in producer requirements, includes a test to check the behavior.