Fix to_yaml to ignore things that aren't usable anyways