Fix: duplicate entity encoding into select_array.