Fix callback inclusion

The unique_id callback must be included only for AR classes that
actually have an unique id :-)