Reduce tim of `_sidebar_to_do_list.html.haml`.

Reduced the run time of `_sidebar_to_do_list.html.haml` by an order of
magnitude. Run times of 200-400ms reduced to 20-40ms by eagerly loading
assignment types in the query for the assignments for the current
course.

See #430.