Cast CGI data to hash, as that's what the code really expects

Fixes an issue where users pass in the `ENV` hash-like object is passed in as
the cgi_data to new Notices.