format_SQL_in_statement function

Format vector of values into a string suitable for an SQL IN statement.