fixes #6674 - correctly access wrapped params, fix apipie doc