Make sure the context is set right while generating a template.
Update CHANGELOG with bug info.
Merge pull request #149 from opscode/sersut/gen-template-fix

Make sure the context is set right while generating a template.