Bug fixes and partial support for Records.