Fix memory leak.
Allow to set bias in output layer.