Add failing tests for #3512 and #4296.
shrinkwrap: don't ignore devdevps that are also deps

Fixes #4296.