Basic recursive map and array Bug in recursive array