Fix attribute and property parsing in templateparser.d