Add overloading of operator [] for record.