A few fixes to make sessions work

I'm new to Lacewing and sessions didn't seem to work at all for me, so I made what seemed required to make them work. The library seems great and if these changes could be incorporated into the mainline it'd be great :) Thanks!