Fix compilation under VC10 with Boost 1.49.0

Simply added <iterator> include, and tweaked scoped_array declaration.