Require that objects can only be made from Sized types. Fixes #18333.