add missing type parameters to GenericStack constructor
add Api.resolveType