[rake] Fix type error during doc generation.