wavpack: check the blocks sample count, fix out of array accesses