Template&addContext() takes a Template

s/template/context/

Should have tested this.