Improved how the key is generated for relative paths (now using the resolved resource)
Test case broke because JSON.stringify changed order of properties in output