Getting NengoOCL working

This commit is a bunch of changes I made in the course of getting Nengo OCL working again. Most of them have to do with that, but there are a few random things in there that I thought I might as well fix while I was there. For that reason, it might be best to go one commit at a time (though I do hate how comments are lost if you edit that commit).