Fix array() / [] inconsistencies.
Fix failing test.