Allow to provide schema data in constructor; fixed HASH->ARRAY casting; fixed tests to reflect automatic HASH->ARRAY casting