fixed bug, changed interface and updated tests in parallel_for
Merge branch 'fix' into devel

Conflicts:
	include/bam/parallel_for.hpp