Check lengths in some custom types