[BUG #7810] add comment for transitive deps
[BUG #7810] some code for capturing dependencies for individual class features

- instead of providing a list of deps over the entire code
- easy to cache (shallow)
- easy to look up feature deps for transitive deps analysis