Fix Trac #246: order of matching in record patterns