More fool-proofing UI.

Corrects non-int, non-positive dimensions.
Checks that given dimensions can be used for wave data.