Redmine#2088: getindices() should produce the right data