Implemented Formalize(): resolve variable references using data sources.
Merge branch 'master' of https://github.com/couchbaselabs/query