added frec which returns first occurence of record as scalar (for eq/ne comparison and things like that)