bug #1799: Remove NAME from template in VMTemplate and Document classes