Checking if the size is a power of two is not enough, should also check if it's a multiple of 8. Closes #7976