Moved C implementations of some scheme functions from runtime.c