Make form_alter work with 0.x or 1.x versions of cas_attributes