Serialisation fix for Credentials

Missing `Serializable` implementation
https://issues.jenkins-ci.org/browse/JENKINS-24188