fix isdiscrete logic check in simulate (and save a few calls to getSampl...

...eTime).  turns out this was never working correctly for simulink models because of the previous transpose bug