Adds serializable attribute, as suggested by Code Analysis.