fix isdiscrete logic check in simulate (and save a few calls to getSampleTime).  turns out this was never working correctly for simulink models because of the previous transpose bug