updated checking and added tests for jags_data_list and jags_data_frame