type_enclosing: handle small enclosings for constructors