__getstate__ in hiddenLayer method sig did not take the self argument.