Throw exception if key gets transformed from/to array in a dotted key.