added fix for type promotion during insertion
10 files changed