unify as_id instance and class methods
model_class.as_id is expected to return nil if it cannot compute the id for the given model