Corrected handling of weight decay for classes where it is not implemented

Fixed error message so it lists the layer type that is not implemented.

Moved methods raising NotImplementedError to Layer base class.