check to_i when mapping name_by_value
add spec for referencing name_by_value with enum
bump to 2.6.5