Avoid Marshal breakage by Yard. Fixes #2415.