Id & PartitionName classes using BytesRef now instead of String

this avoids unnecessary ByteRefs<->String conversions