Add a flag to control learning of bias values.
Fix a bug in decoding gains with tied weights. Allow bias values to be not learned if needed.