Fix for issue 3754

Associations weren't working for tags with brackets in them. Fixed, tests updated/added. 

https://code.google.com/p/otwarchive/issues/detail?id=3754

Signed-off-by: shalott <shalott@gmail.com>