CRA-715: Eliminated assumption that nzp=2*nz when writing wavelets. Also fixed a few other minor issues, mainly related to memory use.
Merge branch 'CRA-715' into CRA-505
Merge pull request #128 from RagnarHauge/CRA-505

Cra 505 CRA-715: Fixed writing of wavelets to allow any padding size.