add nested_type type constructor