Reproduction steps
Scala version: 2.13.10
Problem
Implementing IndexedSeq and not overriding head leads to an IOOBE being thrown, contrary to NSEE mentioned in the specification. This does not affect Vector, as it overrides head.
The same goes for last.