Added hash functions for Literal and Namespace