adds better error messages for some undefined situations
fixes missing st field
fixes tests for new undefined messages
fixes changes as per code review
adds undefined checking condition for funcwrap
Merge branch 'next' into 914_undefined_error

Conflicts:
	test/rql_test/src/control.yaml
fix merge error