Fix a bug that wrong tag name is used in XML output

It is caused when "REFERENCE_VECTOR_COLUMN._key" is used in
output_columns. See a test case for XML output for details.