fix(enum): correct when key has a point (refs #4992)