[MERGE #5305 @pleath] OS#17810746: When we add a property that forces a conversion from path type to dictionary type, preserve the attributes that were passed by the caller
[MERGE #5305 @pleath] OS#17810746: When we add a property that forces a conversion from path type to dictionary type, preserve the attributes that were passed by the caller

Merge pull request #5305 from pleath:17810746

Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore