Add WildcardIndexed annotation and the programatic WildcardIndex. Closes #3225 Original pull request: #3671.