7.x rosiel tag autocomplete

cherry-picked Rosemary's fixes for autocomplete with tag elements.

As per google groups discussion:

https://groups.google.com/forum/?fromgroups=#!topic/islandora/clr_UtEYjbM