Closure.unmarshal optionally accepts a context parameter