fixes #495 - only value field needs to be text, reverting
fixes #495 - ensure we handle the correct index if there is more than one
fixes #495 - Facts truncation when using storeconfig and sharing a MySQL DB with puppet