Rename enum for accessor indexes

Also change get_accessor_from_ce to take the infos from the property_info rather than passing them
through.