Fix strict warnings

Also move static DomainObject::transaction to Pheasant:transaction