Added creation date to the relationship, made sure that select groups does not complain if there is no object_id_two. Made sure that contact-attributes uses the package_id parameter which is needed due to the switch for multiple contacts instances
I take the code back in so someone else can deal with it as I will be upgrading to 5.2 and dave advised me to not remove code but try and fix the bug, which, taken that i will upgrade anyway, wont happen.