Mention free variables in bagof/3

This happens to me from time to time and results in a hard-to-find error.