fix fdja_replace() vs arrays and objects