Added keyvalue template tag.

Added a keyvalue template tag that allows the lookup of values
from a dictionary by supplying a variable containing the key.
Fixed issue.