[trunk] Updated checks regarding number of decomposition levels when compressing

Update  issue 215