Fix errors in stats API docs

Signed-off-by: Michal Čihař <michal@cihar.com>