Fixes #56. Templates were drawn without copying, so all hazards drawn
from a template shared state.