Don't unnecessarily call source.calc_indices in StateMonitor (which also broke recording from Synapses)
Change the type checking of integers a bit to make state monitors work under Python3 as well
Merge remote-tracking branch 'origin/master' into cpp_standalone

Conflicts:
	brian2/monitors/statemonitor.py