Added a tag metamodel test and fix a few issues related to tag handling
Perform template eviction during the postActivate phase