Multipart: add custom parts
Fix crashes caused by miscast of JsonObject to JsonArray or vice versa.
Merge pull request #1 from koush/master

1