Check that Ruby 2.1 implementations return a symbol from def

Adds a spec for https://bugs.ruby-lang.org/issues/3753