Added many bugfixes regarding default values, nulls, selects, and more.