When ring membership is specified without a number, match any ring atom. Resolves bug 1168.

Change-Id: I3828029dcb4de440af630a30e1946d5438bab9e7
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>