Check that questions have a type

Show an error if this is not the case.