fix bugs in ranked word set implementation

check for when all the source dictionary words have been
used as ranked word sets, fix enum behaviour when there
is only one enum to present