Fix JRuby select with ActiveSupport:Duration