support for array foreign key definition in STAT relations