check_inference_model function

Check if the supplied object is a valid Bayesian phylogenetic inference model.