reflection: fixed isTypeEntity()