Made sure local vars are not cleared on resetState().
Made sure local vars are not cleared on resetState().

- mLocalVars might be a shared DynamicObject so instead of clearing
  it on resetting the state, it is set to a new DynamicObject instead.

digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch