fix: Handle decimal.Decimal
instances in flattening
#1939
Merged
decimal.Decimal
instances in flattening
#1939