Added limiters because minimal values for variables are violated due to numerical noise.
Merge remote-tracking branch 'mats/demokk' into demokk