Fix yaml dump spec on JRuby