remove format to support python2.5
fixed up uses of string interpolation in code generation
remove accidental set instead of inc
fix advanced inc tests
remove use of take in advanced subtensor
make sure that there's only one index and its 1d
fix tests for advanced inc