Add failing test.
Fix bug.
Merge pull request #15 from simonjohansson/fix-key-type

Fix key type issue in graphite historian.