make util.extend return target object (ref: #585)