Convert getMemIntrinsicNode to take ArrayRef of SDValue instead of pointer and size.
Replace std::vector with SmallVector for some small, known size vectors.