A couple of small fixes

- Make read only mode work 
- Remove last unused swap methods (fixes  #321)
- Add NIXAPI to operator<< in block