Various IQL bug fixes and improvements.