Add comment
Move BigDecimalAsDouble to SQLiteTemplates
Fix Teradata tests #631