[FIX] XQuery, count(): needless result caching. Fixes #889