Ensure `--deps=none` option works for `bst checkout`
This is a backport of !819.
---
Currently, `bst checkout --deps none` command always produces empty
output. Fix this issue and add regression test for the same.
As part of this, also rename the `dep` loop variable to `element` in
order to avoid confusion in future.
Fixes #670.