fixes #2486 - ensure facts import is idempotent when values are unchanged

three fixes:

* calling ['name'] wasn't returning the associated name, needed to do .name
* we compared ["value"] from the DB against "value" from the hash
* we compared "1234" from the DB against 1234 integers from the hash (e.g. uptime)