Fixed recursive parsing in Swift templates