Fix a bug where duplicate keys could be added to Core.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge pull request #256 from Acidity/feature/fixKeyDups

Fix a bug where duplicate keys could be added to Core.