Fix a compile error with GCC4.4
Fix exception throwing when python list convert to std::vector.