Implement id_was for rails 4.1.6 compatibility

An `id_was` method has been added which, in the default version, passes the name of the primary key attribute to `attribute_was` but when CPK is in use that winds up passing a flattened string of the list of keys, which CPK's custom `attribute_was` doesn't recognise and handle.