Fixed upgrade path from 1.0 branch
Fixed wrong PHP indexed array detection