Use of tag use

Deep cloning nodes that should be used before normal document parsing.
Let's move this whole thing into a separate function. For example, `parseUseDirectives`. Otherwise, the main function is getting too huge and harder to navigate; plus function name will describe what exactly this chunk is doing.