Expose expand_targetlist and use it to support updatable s.b. views
Re-introduce removed code from prototype, add RELOPT_RESULTREL