This looks like a bug to me, will look into a patch for the serializer.