Make ResourcesManager serializable