Make sure singleton instance depends on argument hash

Ensure that a singleton instance is stored for a set of invoked
arguments
Merge pull request #3 from onoi/singleton

Make sure singleton instance depends on argument hash