Support :array and :hash types.