Rewrite DomUtils.getNodesInRange to improve performance

By changing how boundaries are being checked, iteration
performance is boosted quite significantly for text node
retrieval.

* Replace @returns with @return in affected files