use factory method for constant vectors to allow zero-length vectors.