Bunch of changes to ensure attack/fade stay within proper limits.

Also circumventing the zero-duration bug by not allowing effects shorter than 0.1 seconds.

Fixes #6 and some special cases of #5.