But there's a type check inside `setElement`? The tests pass. It's weird either way tho.