adding set() to accept 2 parameters for 2D vectors only

@benfry ok with adding set() to accept xy parameters only for 2D vectors?

@alignedleft we'll need to add this to documentation.