Jruby improvements

as discussed in cucumber/cucumber#379 I've added java implementation of JSONFormatter.appendDuration().
Also I've added TagExpression.isEmpty() (another method we use in cucumber) and fixed one nasty jruby warning.