fix lambda parameter serialization for saving/loading