FORGE-2003: Fix ClasspathWorkspaceResolver functionality for impl/ and <optional> deps