Let's unify the is<T>/to<T> implementations that currently exist in separate versions in LibCore and LibWeb.