Fix for IE10 when including this file

If you include this file in IE10 then it will throw errors because the dictionary objects are not closed properly. This PR fixes that.