Fix multiple package levels not being allowed in template ids.