Fix Type and Name swapped in IndexMetadata
JAVA-156 #fixes