[trunk] Make sure when reading POC that number of layers (layer end) is within accept...