Ensure that the analysis type matches the one in the scoped key.
Merge pull request #1 from matthewtole/bugfix-path-security-hole

Ensure that the analysis type matches the one in the scoped key.