Expand is_constant to encompass names.