[Django17] use [] instead of set() for check of preferred contacts

That's because "set()" require hashable objects and model instances
without primary keys set aren't
[Django17] Updated simple-accounting to be compliant and retrocompatible