Polishing base/utils and added associated tests.

In a incomplete stage now, will be unblocked with a bug fix first in
base/_object_base.