Replaced DOMNode type hints with DOMElement in template normalization classes