[FIX] changed type check for first parameter in function bk2l_array__replace_values()