More initial work on reference from nengo_ocl

- Fixed many bugs since last commit
- added decoder calculations.
- next is working on connect fn