properly unwrap Optionals in Jersey resources

Redoing #748 on the proper branch.

From the original PR: This PR unwraps optional-like types (Java Optional<> and Scala Option[]) inside Resource methods -- an improvement over failing through to UNKNOWN[].

/cc @fehguy