Type conversion

This fixes the script builder so that it uses the automatic type conversion provided by the TypeConversion class.  It also updates the TypeConversion class so that it both automatically loads the type conversions when needed, and also automatically converts between types and their base classes.