Disallow infinite sizes. Fixes #187.