Fixed a bug.
Added missing dereference operator.
Fixed a critical bug and added test.
Added extra index/hash resolver functions.