Fixes for projections involving complexTypes and allowing identity columns not in key.