Fixes Issue #26, so that API.listen() in Ruby coerces types