Add istypeof function to maec.Entity