Fix for #292: Allow selecting non-math topics with exercises for viewing coaching data.

Title says it all. A few tweaks to the function were all that was necessary.

I also made the function ready to accept kinds other than "Exercise"