Made key check force string conversion

Using a gem like Virtus for model attributes (to not use ActiveModel if model is not persistent), the attributes key may not always be strings.  This ensures the types are converted to the same type.