improve treatment of zero-order hold for model inputs and outputs