fix some errors in ApiDeclaration/ApiOperation aggregation, add some docs, refac SchemaNode->TypeNode