re #9604  Fix a bug and make classmaker output rst files for algs