Add document.output to list of liquid vars in output.

CLoses #2232.