Change how weights are stored, and fix up bias nodes.