add type references, lists, and dicts