[feature/1.0] improved flattened comparison, support all data types