Don't include devDependencies past the first level

Even if opts.dev is set.

Fixes npm/npm#6057
add a test for dev deps being extraneous
3.1.1