refs/refs-internal.h: avoid forward declaration of an enum