Accept either ValueError or RuntimeError on read-only array access