[IMP] context check, make type_id browsable
[RFR] make collecting relation ids simple to override