Directed metalation of 1-ester-substituted indolizines: base/electrophile-controlled regioselective functionalization.