Add some convenience methods to Object.