Fix problem with updating parsed template in DB
Fix problem with updating parsed template in DB

The parsed template would not always be updated correctly when the actual
template object had not changed (only the contents). This change forces an
update by making a copy.

Signed-off-by: Zane Bitter <1899fff8e7db19a598ee9d835aa1a232f82ea264@redhat.com>

steveb/heat,pshchelo/heat,gonzolino/heat,rh-s/heat,JioCloud/heat,steveb/heat-cfntools,bbandaru/heat-cfntools,Triv90/Heat,cryptickp/heat,gonzolino/heat,jasondunsmore/heat,Triv90/Heat,citrix-openstack-build/heat,openstack/heat,sdake/heat-jeos,cwolferh/heat-scratch,openstack/heat,JioCloud/heat,rickerc/heat_audit,dragorosson/heat,dims/heat,NeCTAR-RC/heat,Triv90/Heat,rh-s/heat,takeshineshiro/heat,takeshineshiro/heat,varunarya10/heat,varunarya10/heat,cwolferh/heat-scratch,miguelgrinberg/heat,rdo-management/heat,rdo-management/heat,openstack/heat-cfntools,srznew/heat,NeCTAR-RC/heat,maestro-hybrid-cloud/heat,dims/heat,citrix-openstack-build/heat,ntt-sic/heat,miguelgrinberg/heat,redhat-openstack/heat,srznew/heat,noironetworks/heat,maestro-hybrid-cloud/heat,steveb/heat,pratikmallya/heat,steveb/heat-cfntools,noironetworks/heat,pratikmallya/heat,ntt-sic/heat,jasondunsmore/heat,cryptickp/heat,dragorosson/heat,pshchelo/heat,redhat-openstack/heat,rickerc/heat_audit