Made more strict typing in TagTransformer