Misleading error message when using optional or repeatedly parser