Remove unused Pair class.
Fix warnings in Record.