Changing participant.type to number and exposing the new ENUMs to public.json

Fixes #1269.
Fixes #1263.
Fixes #1262.