Fixes sphinx warning by unindexing reference.rst

Only one occurence of autofunctions can be in the index, either the one
in reference.rst or the one in internals.rst.