Proper handling of arrays (array types are now 'a option array, which breaks backward compatibility)