yield error for cycles in project references and subprojects

Task-number: QBS-368

Change-Id: Ie260827fd2df2d211146958b4d8cafe8b3011ad0
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>