Utility functions and data structures for Gambit Scheme