Depth parameter added to Rest::getObject method.