Merging Templates when Inheriting them