Replace usage of experimental smartmatch operator

Fixes experimental warning on Perl 5.18
Replace WebkitDOMHTMLElement::get_id by WebkitDOMElement::get_id

Fixes deprecation warning when running tests.