Various fixes

Hi! Just had a couple of issues which I tracked down to ac-js2, so here are a few small corresponding fixes. :-)

-Steve