adds `type` to options of normalized template objects