added Participant::type
fixes and tests for Participant and ParticipantManager