Reduce loading time by selectively including Grid's Counter
Fix errors and omissions in color conversions
Add type declarations for faster generated code