#487 copy array manually