fixes #1719. cached resolution: fixes handling of classifier and other explicit artifacts
fixes #1711, #1716. Fixes configuration remapping

The actual change is one line at line 64. nextConfMap takes dep instead
of dd.
Merge pull request #1720 from sbt/fix/1719

cached resolution: Fixes #1711, #1716, #1719