fixes for layerId setting in the scaled reference pictures, setting of PPS id, and RPL construction with ILRP