check_internal_list function

checks if all entries of internal_list are an expression or integer. Throws an error if not (internal docu)