utils: export type ids
test: reference type id variables instead of using hardcoded values
test: add unserialization tests