Changed the C implementation around a little to refer to the global dictionaries.