RubyArray is generic and should be declared with <?> at minimum.
The serialization changes are due to the RubyObject hierarchy implementing Serializable. Unfortunately the Joni classes are not themselves serializable, so these changes are solely to suppress the warnings.