Fixes for failing examples

This pull request addresses the issues found in vert-x/vertx-examples that are mentioned in this google group message https://groups.google.com/forum/#!topic/vertx/0i9RHx6kHgk

From a high level perspective, these failures are generally attributable to a failure to catch all edge cases while converting from Java to Javascript. A focus point for the most recent release was to hide any raw Java objects from the API consumer, and provide interfaces only in Javascript. In some cases, Java objects slipped through or were handled incorrectly. This pull request should fix that.