Slot: Refined assert criteria for type of 'size' arg in resize()
Should fix ilastik/ilastik#543