Support UpsertValues

I have made changes to support Upsert VALUES with ARRAY.  This does not support Upsert with SELECT still. Wanted to know your opinion on this.  If this path looks fine I can continue with that too.  
May be I can handle Upsert SELECT as a seperate pull.