Hey thanks, but I guess your workaround won't work for me - I don't know the types before hand, so I actually can't serialize.
If this is actually a bug I'll open a ticket in Jira, it would be nice to get some confirmation though from the powers that be that this is the case.