Test data argument against all elements of class()

Permits, for example, grouped_df which inherits from
data.frame