Bug fixes, optimizations, and dynamic typing feature