std: work-around for take/skip type inference (#6967)

@thestinger r?