Close GH-819: Fix resolutions not working properly when resolving to branches, closes #818.. Fixes #818