i vote for calling constant.to_sym here, and in name_to_value_map below, so that you know the hash keys/values will always be symbols not strings