Refactored QNamePool to use immutable QNames correctly