Cache composite constraints info. This entire code section probably still be a lot more elegant....
Script database: add rudimentary support for array datatypes: only 1 dimension, lower bound ignored. Complements commit fb50acf47452577ab9ba2325bd5859c2414f1459