GRADLE-2017 tests for scope preserving in idea plugin.
Test for IdeaDependenciesProvider
Changes in dependency mapping to IDEA scopes.

Fixes GRADLE-2017 and GRADLE-2231.
All dependencies are collected with referencing configurations and
they are assigned scope(s) using list of rules.