Bug fix

When sampling from deterministic factors, bounds of output variables were not respected (Bug 405)