Fix Unsupported class for YAML conversion Fixnum when `write_lockfiles`