Add assignment weights to cache keys.

Closes #659.
Merge pull request #682 from UM-USElab/weights-keys

Add assignment weights to cache keys.