put extend in util namespace

"extend" is too close to "extends", a reserved word.