SimilarityEngine: fix minor bug with offsets.
Fix Tag factory name generation.
Fix SimilarityEngine spec idea and tag creation.