Fix MultiPart support for primitive types