Add IteratorTemplate and Utils test and fix bug in Utils.abs().