Fix building the webapi docs.

My changes to define string types using six.text_type means that the type can
now be 'unicode' instead of 'str'. This works fine in the API, but the docs
generator didn't know how to interpret that.

Testing done: Built the API docs.

Reviewed at https://reviews.reviewboard.org/r/4992/