Use special cases for "copy zero" and "copy reference"

This is done in the same way on both the encoder and decoder.
Does not change the output.
Reducing the use of pow() by optmizing the beta=1 and beta=1.5 cases

Not bit-exact, but equivalent.