the games sees nothing in containers which is why a thief just loves to carry around sacks of loot
but yes 'for the record' the game has major issues with scrolls... always check your spells before level up because any spell you learn from scroll will not count as known i.e, the game will default to spells you already know because you learnt it from a scroll and this cheats you out of an extra spell if you pick the same thing again