HBTreeFolder2: implement slicing of object{Ids,Items,Values} results

This is required for ERP5Site_checkDataWithScript script (erp5_core BT).