Avoid modifying the default resources limits hash.

@fw42 for review

## Problem

Template#initialize already duplicates the default_resource_limits hash, but if a Context is created directly, then it will use Template.default_resource_limits hash directly, causing it to get modified during rendering.

## Solution

Duplicate the `Template.default_resource_limits` before assigning it to an instance variable in Context#initialize