[COMMIT] Move several more non-loop-hotspot functions from C to Lisp.