Support wildcards on indices

Fixes bug #11