Add `references` to work around HABTM preload's poor performance.

See: https://github.com/rails/rails/issues/15663