fixup! Throw a TypeError when a non-object is passed where one is expected.