Fixed several issues with quiz_get_questions() returning duplicate questions. This did not have much effect on quiz taking because the list was unique-ified.