Array and object renderItems now uses recursive approach to properly handle the callbacks