Optimize Common Lisp visualizer

Added type optimizations for various functions