Robustify and add scalar operations to vectors