Fixes #23914. Also adds a check to STG lint that these args are properly unary or nullary after unarisation