selfLibrary rule in template is applied before Vars now