Fix dialyzer errors.

jsx_parser:handle_event/3 needed to be commented since it is not yet used.  The other errors were solved by adding more type information (or fixing types).