std.range.package: use ElementType consistently

This complements #2551.