fix(enum): correct when key has a point (closes #4993)