Fix problem of deserializing payload as Dictionary and not getting the correct type from the payload-Type header