parse dotted record patterns correctly