Add a "isUserDefinedType" field to transactions, and set it when a transaction type is manually defined
Then use this boolean when deduplicating transactions by type, to not override the type in this case.
We should have this in the next release, or we should disable the deduplication by type in the meanwhile.
cc @ZeHiro