Ensure that trees are staged when adding to index using a path filter for a feature

this fixes #563